package Dome7;

public class Text7 {
    public static void main(String[] args) {
        /*String str="123abcwang";
        System.out.println(str.substring(4,7));*/
        String str = " hello world " ;
        System.out.println("["+str+"]");
        System.out.println("["+str.trim()+"]");
    }
}
